package cn.zhl.设计模式.桥接.shape;

import cn.zhl.设计模式.桥接.color.Color;
import cn.zhl.设计模式.桥接.size.BasicSize;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2021-03-17 17:47
 **/
public abstract class AbstractShape {
	protected Color color;
	protected BasicSize size;

	public AbstractShape(BasicSize size,Color color){
		this.color = color;
		this.size = size;
	}
	public void draw(){
		System.out.print(String.format("一共%d个%s的",size.size(),color.color()));
		shape();
	}
	public abstract void shape();
}
